<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: debug.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('db/d16/debug_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">debug.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> Name        : debug.h</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> Author      : uCXpresso</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> Version     : 1.0.5</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> Date        : 2014/2/28</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> Copyright   : Copyright (C) www.embeda.com.tw</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> Description : Battery Level Service for BLE</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> History</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+-------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> DATE     | VERSION |   DESCRIPTIONS                             |  By</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> ---------+---------+--------------------------------------------+-------------</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> 2012/9/6   v1.0.1  add isAnyKey()                                  Jason</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> 2012/9/12  v1.0.2  add println(CString&amp;)</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> 2012/9/12  v1.0.3  rename waitEnterToDebugMode() to waitToDebugMode()</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> 2013/5/15  v1.0.4  add dbg_printf() function                       Jason</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> 2014/2/28  v1.0.5  Add ASSERT() function                           Jason</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> ===============================================================================</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifndef _CDEBUG_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _CDEBUG_H</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;stdarg.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;class/shell.h&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;class/mutex.h&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../d4/d37/class_c_debug.html">CDebug</a>: <span class="keyword">public</span> <a class="code" href="../../d0/d26/class_c_thread.html">CThread</a> {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="comment">// construct use user&#39;s stream</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="../../d4/d37/class_c_debug.html#a5e5390068e9a979029fc6df202ad8b6e">CDebug</a>(<a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> &amp;s);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="comment">// start DEBUG task</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="../../d4/d37/class_c_debug.html#a40d1b7f50b76311b3a7fb148e5b7e2ea">start</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="comment">// for DEBUG</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a525c9b7e5f56eca7017ee8a519f86a3e">waitToDebugMode</a>();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a89c983c24d2a2934187d25a27f6c1aa9">printf</a>(LPCTSTR format, va_list varg);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a89c983c24d2a2934187d25a27f6c1aa9">printf</a>(LPCTSTR format, ...);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a69b3be339e7fe9c991b39ef0f0e452c6">println</a>(LPCTSTR format, ...);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a69b3be339e7fe9c991b39ef0f0e452c6">println</a>(<span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a69b3be339e7fe9c991b39ef0f0e452c6">println</a>(uint32_t value);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a69b3be339e7fe9c991b39ef0f0e452c6">println</a>(<span class="keywordtype">float</span> value);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span>  <a class="code" href="../../d4/d37/class_c_debug.html#a260233f4b1d98901555a249c3f7ad7be">breakpoint</a>(LPCTSTR desc=NULL);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#ae83e3ecc41e21c19d2cfbea15459a7c9">   53</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#ae83e3ecc41e21c19d2cfbea15459a7c9">println</a>(<a class="code" href="../../df/d99/class_c_string.html">CString</a> &amp;str){</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="../../d4/d37/class_c_debug.html#a69b3be339e7fe9c991b39ef0f0e452c6">println</a>((LPCTSTR)str);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#ab90cf9f4b16af5e740ac6a503f612224">   56</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="../../d4/d37/class_c_debug.html#ab90cf9f4b16af5e740ac6a503f612224">isDebugMode</a>() {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/d37/class_c_debug.html#a1e4ada8bb77d3cbcfaf614f0a657d6c7">m_shell</a>.<a class="code" href="../../de/dba/class_c_shell.html#ae0f6cb34ee627c44b1690d16d76d628f">isDebugMode</a>();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#ad4b4b7f29bf53500532e00aabb62deab">   59</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="../../d4/d37/class_c_debug.html#ad4b4b7f29bf53500532e00aabb62deab">isAnyKey</a>() {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordtype">int</span> k;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">return</span>  ((k=<a class="code" href="../../d4/d37/class_c_debug.html#a1e4ada8bb77d3cbcfaf614f0a657d6c7">m_shell</a>.<a class="code" href="../../de/dba/class_c_shell.html#a7731a22b0b80a4facc431f6e07db2599">dbgWaitKey</a>(0))!=0x1b? k : 0);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a8135b97d1fbae13f5a4952e3bbf50d34">putc</a>(<span class="keywordtype">int</span> c);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#a3c07626045ffa3227794e7cc080f5e36">   65</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="../../d4/d37/class_c_debug.html#a3c07626045ffa3227794e7cc080f5e36">bp</a>() {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/d37/class_c_debug.html#a260233f4b1d98901555a249c3f7ad7be">breakpoint</a>();</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#a5a1359725fca8337c5967a3c1811c460">   69</a></span>&#160;    <span class="keyword">inline</span> <span class="keyword">operator</span> bool () {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d4/d37/class_c_debug.html#ab90cf9f4b16af5e740ac6a503f612224">isDebugMode</a>();</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="comment">// internal use</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../d4/d37/class_c_debug.html#a9a3e40cc8ee5d0c2a41577f658779c71">run</a>();</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#ab0e3c0c44f27c27a9fafa30866854cbe">   79</a></span>&#160;    <a class="code" href="../../d4/d16/class_c_stream.html">CStream</a> *<a class="code" href="../../d4/d37/class_c_debug.html#ab0e3c0c44f27c27a9fafa30866854cbe">m_stream</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#a1e4ada8bb77d3cbcfaf614f0a657d6c7">   80</a></span>&#160;    <a class="code" href="../../de/dba/class_c_shell.html">CShell</a>   <a class="code" href="../../d4/d37/class_c_debug.html#a1e4ada8bb77d3cbcfaf614f0a657d6c7">m_shell</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../d4/d37/class_c_debug.html#a5c8a50a383cc0f5ddd26efb72d6b4794">   81</a></span>&#160;    <a class="code" href="../../d3/d0d/class_c_mutex.html">CMutex</a>  <a class="code" href="../../d4/d37/class_c_debug.html#a5c8a50a383cc0f5ddd26efb72d6b4794">m_mutex</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;};</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment"> * for Debug Build</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="comment"> ******************************************************************************/</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <a class="code" href="../../d4/d37/class_c_debug.html">CDebug</a> *gpDBG;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">// show message in Debug Mode</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> <span class="keywordtype">void</span> dbg_printf(LPCTSTR format, ...);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment">// show message in Debug Mode with condition, if condition is false,</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">// and press any key to continue.</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> <span class="keywordtype">void</span> ASSERT(<span class="keywordtype">bool</span> condition, LPCTSTR format, ...);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor"></span><span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment"> * for Release Build</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment"> ******************************************************************************/</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">#define dbg_printf(...)</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ASSERT(...)</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif  // _CDEBUG_H</span></div>
<div class="ttc" id="class_c_debug_html_a9a3e40cc8ee5d0c2a41577f658779c71"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a9a3e40cc8ee5d0c2a41577f658779c71">CDebug::run</a></div><div class="ttdeci">virtual void run()</div></div>
<div class="ttc" id="class_c_shell_html"><div class="ttname"><a href="../../de/dba/class_c_shell.html">CShell</a></div><div class="ttdef"><b>Definition:</b> shell.h:28</div></div>
<div class="ttc" id="class_c_stream_html"><div class="ttname"><a href="../../d4/d16/class_c_stream.html">CStream</a></div><div class="ttdef"><b>Definition:</b> stream.h:27</div></div>
<div class="ttc" id="class_c_shell_html_ae0f6cb34ee627c44b1690d16d76d628f"><div class="ttname"><a href="../../de/dba/class_c_shell.html#ae0f6cb34ee627c44b1690d16d76d628f">CShell::isDebugMode</a></div><div class="ttdeci">bool isDebugMode()</div></div>
<div class="ttc" id="class_c_debug_html_a525c9b7e5f56eca7017ee8a519f86a3e"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a525c9b7e5f56eca7017ee8a519f86a3e">CDebug::waitToDebugMode</a></div><div class="ttdeci">virtual void waitToDebugMode()</div></div>
<div class="ttc" id="class_c_debug_html_ae83e3ecc41e21c19d2cfbea15459a7c9"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#ae83e3ecc41e21c19d2cfbea15459a7c9">CDebug::println</a></div><div class="ttdeci">virtual void println(CString &amp;str)</div><div class="ttdef"><b>Definition:</b> debug.h:53</div></div>
<div class="ttc" id="class_c_debug_html_a1e4ada8bb77d3cbcfaf614f0a657d6c7"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a1e4ada8bb77d3cbcfaf614f0a657d6c7">CDebug::m_shell</a></div><div class="ttdeci">CShell m_shell</div><div class="ttdef"><b>Definition:</b> debug.h:80</div></div>
<div class="ttc" id="class_c_debug_html_a69b3be339e7fe9c991b39ef0f0e452c6"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a69b3be339e7fe9c991b39ef0f0e452c6">CDebug::println</a></div><div class="ttdeci">virtual void println(LPCTSTR format,...)</div></div>
<div class="ttc" id="class_c_debug_html_ad4b4b7f29bf53500532e00aabb62deab"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#ad4b4b7f29bf53500532e00aabb62deab">CDebug::isAnyKey</a></div><div class="ttdeci">virtual int isAnyKey()</div><div class="ttdef"><b>Definition:</b> debug.h:59</div></div>
<div class="ttc" id="class_c_shell_html_a7731a22b0b80a4facc431f6e07db2599"><div class="ttname"><a href="../../de/dba/class_c_shell.html#a7731a22b0b80a4facc431f6e07db2599">CShell::dbgWaitKey</a></div><div class="ttdeci">int dbgWaitKey(uint32_t t=MAX_DELAY_TIME)</div></div>
<div class="ttc" id="class_c_thread_html"><div class="ttname"><a href="../../d0/d26/class_c_thread.html">CThread</a></div><div class="ttdef"><b>Definition:</b> thread.h:64</div></div>
<div class="ttc" id="class_c_debug_html_a89c983c24d2a2934187d25a27f6c1aa9"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a89c983c24d2a2934187d25a27f6c1aa9">CDebug::printf</a></div><div class="ttdeci">virtual void printf(LPCTSTR format, va_list varg)</div></div>
<div class="ttc" id="class_c_debug_html_a260233f4b1d98901555a249c3f7ad7be"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a260233f4b1d98901555a249c3f7ad7be">CDebug::breakpoint</a></div><div class="ttdeci">virtual int breakpoint(LPCTSTR desc=NULL)</div></div>
<div class="ttc" id="class_c_debug_html_ab90cf9f4b16af5e740ac6a503f612224"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#ab90cf9f4b16af5e740ac6a503f612224">CDebug::isDebugMode</a></div><div class="ttdeci">virtual bool isDebugMode()</div><div class="ttdef"><b>Definition:</b> debug.h:56</div></div>
<div class="ttc" id="class_c_debug_html_a5c8a50a383cc0f5ddd26efb72d6b4794"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a5c8a50a383cc0f5ddd26efb72d6b4794">CDebug::m_mutex</a></div><div class="ttdeci">CMutex m_mutex</div><div class="ttdef"><b>Definition:</b> debug.h:81</div></div>
<div class="ttc" id="class_c_debug_html"><div class="ttname"><a href="../../d4/d37/class_c_debug.html">CDebug</a></div><div class="ttdef"><b>Definition:</b> debug.h:28</div></div>
<div class="ttc" id="class_c_mutex_html"><div class="ttname"><a href="../../d3/d0d/class_c_mutex.html">CMutex</a></div><div class="ttdef"><b>Definition:</b> mutex.h:31</div></div>
<div class="ttc" id="class_c_debug_html_a8135b97d1fbae13f5a4952e3bbf50d34"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a8135b97d1fbae13f5a4952e3bbf50d34">CDebug::putc</a></div><div class="ttdeci">virtual void putc(int c)</div></div>
<div class="ttc" id="class_c_debug_html_a3c07626045ffa3227794e7cc080f5e36"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a3c07626045ffa3227794e7cc080f5e36">CDebug::bp</a></div><div class="ttdeci">int bp()</div><div class="ttdef"><b>Definition:</b> debug.h:65</div></div>
<div class="ttc" id="class_c_string_html"><div class="ttname"><a href="../../df/d99/class_c_string.html">CString</a></div><div class="ttdoc">a string class inherit from CSmallPrintf. </div><div class="ttdef"><b>Definition:</b> string.h:46</div></div>
<div class="ttc" id="class_c_debug_html_a5e5390068e9a979029fc6df202ad8b6e"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a5e5390068e9a979029fc6df202ad8b6e">CDebug::CDebug</a></div><div class="ttdeci">CDebug(CStream &amp;s)</div></div>
<div class="ttc" id="class_c_debug_html_a40d1b7f50b76311b3a7fb148e5b7e2ea"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#a40d1b7f50b76311b3a7fb148e5b7e2ea">CDebug::start</a></div><div class="ttdeci">virtual bool start()</div></div>
<div class="ttc" id="class_c_debug_html_ab0e3c0c44f27c27a9fafa30866854cbe"><div class="ttname"><a href="../../d4/d37/class_c_debug.html#ab0e3c0c44f27c27a9fafa30866854cbe">CDebug::m_stream</a></div><div class="ttdeci">CStream * m_stream</div><div class="ttdef"><b>Definition:</b> debug.h:79</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d9ab3e09413249e340719d1c246acc66.html">Jason Project</a></li><li class="navelem"><a class="el" href="../../dir_e60b0d0338763df7a227cbecf5ac6106.html">Firmware</a></li><li class="navelem"><a class="el" href="../../dir_c8ef7bdfc8622ceb56fdbfff8f44a6b4.html">lpcxpresso</a></li><li class="navelem"><a class="el" href="../../dir_bc2544560b94a5512f672a61310393b1.html">ucxpresso.lite</a></li><li class="navelem"><a class="el" href="../../dir_89b485e3174b4ad30c1cd4b50a79dec9.html">uCXpresso.BLE</a></li><li class="navelem"><a class="el" href="../../dir_ef35519cefd621f663612ebad34cbfc9.html">inc</a></li><li class="navelem"><b>debug.h</b></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
